require 'csv'
class AddDoctor < ActiveRecord::Migration
  def self.up
    @parsed_file = CSV::Reader.parse(File.open('db/testData/doctors.csv','r'))
    @parsed_file.each do |row|
      Doctor.create(:doctor_name => row[0])
    end
    
  end

  def self.down
    Doctor.delete_all  
  end
end
